package com.cucn.ingmall.member.dao;

import com.cucn.ingmall.member.entity.MemberEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 会员
 *
 * @author kouchaojie
 * @email kou1688@foxmail.com
 * @date 2021-11-17 18:26:50
 */
@Mapper
public interface MemberDao extends BaseMapper<MemberEntity> {

    Integer selectUserNameIsUnique(@Param("userName") String userName);

    Integer selectPhoneIsUnique(@Param("phone") String phone);

    /**
     * 根据手机号或用户名进行匹配
     *
     * @param loginacct
     * @return
     */
    MemberEntity selectMemberByAccount(@Param("loginacct") String loginacct);
}
